<%--
  Created by IntelliJ IDEA.
  User: liliting
  Date: 2020/11/17
  Time: 上午9:38
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>

    <div>
        <c:if test="${users==null}">
            <a href="login.jsp">登录</a>
            <a href="register.jsp">注册</a>
        </c:if>
        <c:if test="${users!=null}">
            <h1>欢迎您，${users.username}</h1>
        </c:if>
    </div>
    <br><hr>

    <a href="/orderList">查看订单</a>
    <a href="/cartList">查看购物车</a>

</body>
</html>
